package com.luweijie.sh.service.impl;

import com.luweijie.sh.entity.po.Resource;
import com.luweijie.sh.mapper.ResourceMapper;
import com.luweijie.sh.service.IResourceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 资源表 服务实现类
 * </p>
 *
 * @author luweijie
 * @since 2020-06-11
 */
@Service
public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> implements IResourceService {

    @Autowired
    ResourceMapper  resourceMapper;
    @Override
    public List<Resource> query(String role) {
        List<Resource> query = resourceMapper.query(role);
        return query;
    }

    @Override
    public List<Resource> all() {
       return this.list();
    }
}
